/**
 * ****************************************************************************
 * Project: RoboBridge
 * ----------------------------------------------------------------------------
 * -------------------------- [c]2012 - KrawallMann ---------------------------
 * ---------------------- http://www.krawallmann.de.tc/ -----------------------
 * ****************************************************************************
 * File: Direction.java Package:
 * tc.de.krawallmann.robobridge.devices.implementation Version: 1.0 Author(s):
 * KrawallMann
 * ****************************************************************************
 * Description:
 * ****************************************************************************
 */
package tc.de.krawallmann.robobridge.devices.implementation;

/**
 * The Enum Direction contains the RP6's direction values.
 * 
 * @author KrawallMann
 * @version 1.0
 */
public enum Direction {

	/** The bwd. */
	BWD(1),
	/** The fwd. */
	FWD(0),
	/** The left. */
	LEFT(2),
	/** The right. */
	RIGHT(3);

	/** The code. */
	private int code;

	/**
	 * Instantiates a new direction.
	 * 
	 * @param code
	 *            the code
	 */
	private Direction(final int code) {
		this.code = code;
	}

	/**
	 * Gets the code.
	 * 
	 * @return the code
	 */
	public int getCode() {
		return code;
	}
}
